import request from '@/utils/request'
// 获取部门负责人
export function getEmployeeSimple () {
  return request({
    url: '/sys/user/simple'
  })
}

// 获取员工列表信息
export function getEmployeesList (params) {
  return request({
    url: '/sys/user',
    method: 'GET',
    params
  })
}

// 删除员工
export function delEmployees (id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'delete'
  })
}

// 新增员工
export function addEmployees (data) {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

// 员工导入的接口
export function importEmployees (data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
